//BgMove.js
cc.Class({
    extends: cc.Component,
    properties: {
        // foo: {
        //    default: null,
        //    url: cc.Texture2D,  // optional, default is typeof default
        //    serializable: true, // optional, default is true
        //    visible: true,      // optional, default is true
        //    displayName: 'Foo', // optional
        //    readonly: false,    // optional, default is false
        // },
        // ...
    },
    //背景移动
    setMoveAction: function(height){
        // 移动距离
        var moveHeight = height;
        var moveAction = cc.moveBy(this.jumpTimes, cc.p(0, - moveHeight));
        return moveAction;
    },
    // use this for initialization
    onLoad: function () {
    },
    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {
    // },
});
